<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>位置跟随特性</title>
  <style>
    .box{
      display: inline-block;
      border: 2px solid #005dff;
    }
    .icon{
      background: #ffe1e1;
      font-style: normal;
      padding: 5px 10px;
    }

  </style>
</head>
<body>
  <div class="box">
    <i class="icon" style="">我是图标</i>
    <img src="https://img1.mukewang.com/57a6f85b00013c7202090209-200-200.jpg" alt="">
  </div>
</body>
</html>